<template>
  <div id="app">
    <!-- <login></login> -->
    <router-view></router-view>
  </div>
</template>


<script>
import login from './pages/login'
import * as api from './api/permisson'

import recursionRoutes  from '@/router/recursionRoutes'
import allRoutes from './router/generateRoute'

let routess = allRoutes.find(item => item.name==='home')
export default{
  components:{
    // login
  },

  mounted(){
    // api.getMenuList()
    // .then(res=>{
    //   console.log('res---',res)
    //   recursion(res.data,routess.children)
    //   console.log('useMens---',useMens)
    // })

    // api.getMenuList()
    //   .then(res => {
    //     console.log(res)
    //     let userMenu = recursionRoutes(res.data.menuList, routess.children)

    //     console.log('userMen', userMenu)
    //   })

    // this.$store.dispatch('permisson/GETDG')
  }
}
</script>

<style lang="less">

</style>
